Optimal. Leaf size=20 \[ \frac{x}{2 a}+\frac{\sin (x) \cos (x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0479074, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3175, 2635, 8} \[ \frac{x}{2 a}+\frac{\sin (x) \cos (x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cos ^4(x)}{a-a \sin ^2(x)} \, dx &=\frac{\int \cos ^2(x) \, dx}{a}\\ &=\frac{\cos (x) \sin (x)}{2 a}+\frac{\int 1 \, dx}{2 a}\\ &=\frac{x}{2 a}+\frac{\cos (x) \sin (x)}{2 a}\\ \end{align*}
Mathematica [A] time = 0.0028952, size = 18, normalized size = 0.9 \[ \frac{\frac{x}{2}+\frac{1}{4} \sin (2 x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 25, normalized size = 1.3 \begin{align*}{\frac{\tan \left ( x \right ) }{2\,a \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) }}+{\frac{\arctan \left ( \tan \left ( x \right ) \right ) }{2\,a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48137, size = 28, normalized size = 1.4 \begin{align*} \frac{x}{2 \, a} + \frac{\tan \left (x\right )}{2 \,{\left (a \tan \left (x\right )^{2} + a\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82887, size = 36, normalized size = 1.8 \begin{align*} \frac{\cos \left (x\right ) \sin \left (x\right ) + x}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 8.19727, size = 153, normalized size = 7.65 \begin{align*} \frac{x \tan ^{4}{\left (\frac{x}{2} \right )}}{2 a \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{2 x \tan ^{2}{\left (\frac{x}{2} \right )}}{2 a \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{x}{2 a \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a} - \frac{2 \tan ^{3}{\left (\frac{x}{2} \right )}}{2 a \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a} + \frac{2 \tan{\left (\frac{x}{2} \right )}}{2 a \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12452, size = 32, normalized size = 1.6 \begin{align*} \frac{\arctan \left (\tan \left (x\right )\right )}{2 \, a} + \frac{\tan \left (x\right )}{2 \,{\left (\tan \left (x\right )^{2} + 1\right )} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]